//
//  MYJGViewController.m
//  feicuiwan
//
//  Created by ZhengYing on 2017/7/5.
//  Copyright © 2017年 zy. All rights reserved.
//

#import "MYJGViewController.h"
#import "MYTabViewController.h"
@interface MYJGViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation MYJGViewController
- (IBAction)ddPress:(id)sender {
    [self.imageView setImage:[UIImage imageNamed:@"bg_dd"]];
    for (UIButton *btn in self.view.subviews) {
        if (btn.tag>200) {
            btn.hidden = YES;
        }else{
            btn.hidden = NO;
            
        }
    }

}
- (IBAction)myPress:(id)sender {
     [self.imageView setImage:[UIImage imageNamed:@"bg_my"]];
    for (UIButton *btn in self.view.subviews) {
        if (btn.tag>100&&btn.tag<200) {
            btn.hidden = YES;
        }else{
            btn.hidden = NO;
            
        }
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)viewWillAppear:(BOOL)animated{
    [(MYTabViewController *)self.tabBarController showTabbar];

}
- (IBAction)go:(id)sender {
    [(MYTabViewController *)self.tabBarController hiddenTibbar];

}
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}


@end
